<?php
global $_POST;
require_once('./roots.php');
require_once('./classes/rbac.php');
require($root_path.'include/inc_environment_global.php');
$result=NULL;
//print_r($_POST);

    if ($_POST['login_id']!="" && $_POST['password']==$_POST['repassword'] &&$_POST['password']!=""){
        $rbac=new rbac();
        $result=$rbac->Modificar_usuario($_POST['old_login_id'], $_POST['login_id'],$_POST['password'], $_POST['estado'],  $_SESSION['sess_login_username']);
    }
header("Location:$root_path/modules/rbac/UsuarioListModificar.php?result=".$result."&lang=".$lang);


?>